home *** CD-ROM | disk | FTP | other *** search
/ Zoom 2 / Zoom - Release 2 (1996)(Active Software)[!].iso / programming / amiga / cgraphx / assembler / include / cybergraphics / cybergraphics.i
Encoding:
Text File  |  1996-01-05  |  3.5 KB  |  137 lines

  1.             IFND    CYBERGRAPHICS_CYBERGRAPHICS_I
  2. CYBERGRAPHICS_CYBERGRAPHICS_I    SET    1
  3.  
  4.  
  5.             INCLUDE "exec/nodes.i"
  6.             INCLUDE "utility/tagitem.i"
  7.             INCLUDE    "graphics/displayinfo.i"
  8.  
  9. ;
  10. ; Definition of CyberModeNode (Returned in AllocModeList)
  11. ;
  12.             STRUCTURE    CyberModeNode,0
  13.             STRUCT    cmn_Node,LN_SIZE
  14.             STRUCT    cmn_ModeText,DISPLAYNAMELEN
  15.             ULONG    cmn_DisplayID
  16.             UWORD    cmn_Width
  17.             UWORD    cmn_Height
  18.             UWORD    cmn_Depth
  19.             APTR    cmn_DisplayTagList
  20.             LABEL    cmn_SIZEOF
  21.  
  22.         
  23. ;
  24. ; Parameters for GetCyberMapAttr()
  25. ;
  26.  
  27. CYBRMATTR_XMOD        EQU    $80000001    ; function returns BytesPerRow if its called with this parameter
  28. CYBRMATTR_BPPIX        EQU    $80000002    ; BytesPerPixel shall be returned
  29. CYBRMATTR_DISPADR    EQU    $80000003    ; do not use this ! private tag
  30. CYBRMATTR_PIXFMT    EQU    $80000004    ; the pixel format is returned
  31. CYBRMATTR_WIDTH        EQU    $80000005    ; returns width in pixels
  32. CYBRMATTR_HEIGHT    EQU    $80000006    ; returns height in lines
  33. CYBRMATTR_DEPTH        EQU    $80000007    ; returns bits per pixel
  34. CYBRMATTR_ISCYBERGFX    EQU    $80000008    ; returns if supplied bitmap is a cybergfx one
  35. CYBRMATTR_ISLINEARMEM    EQU    $80000009    ; returns -1 if supplied bitmap is linear accessable
  36.  
  37. ;
  38. ; Parameters for GetCyberIDAttr()
  39. ;
  40.  
  41. CYBRIDATTR_PIXFMT    EQU    $80000001    ; the pixel format is returned
  42. CYBRIDATTR_WIDTH    EQU    $80000002    ; returns visible width in pixels
  43. CYBRIDATTR_HEIGHT    EQU    $80000003    ; returns visible height in lines
  44. CYBRIDATTR_DEPTH    EQU    $80000004    ; returns bits per pixel
  45. CYBRIDATTR_BPPIX    EQU    $80000005    ; BytesPerPixel shall be returned
  46.  
  47. ;
  48. ; Tags for CModeRequestTagList()
  49. ;
  50.  
  51. CYBRMREQ_TB        EQU    (TAG_USER+$40000)
  52. ;
  53. ; FilterTags
  54. ;
  55. CYBRMREQ_MinDepth    EQU    CYBRMREQ_TB+0        ; Minimum depth for displayed screenmode
  56. CYBRMREQ_MaxDepth    EQU    CYBRMREQ_TB+1        ; Maximum depth  "       "        "
  57. CYBRMREQ_MinWidth    EQU    CYBRMREQ_TB+2        ; Minumum width  "       "        "
  58. CYBRMREQ_MaxWidth    EQU    CYBRMREQ_TB+3        ; Maximum width  "       "        "
  59. CYBRMREQ_MinHeight    EQU    CYBRMREQ_TB+4        ; Minumum height "       "        "
  60. CYBRMREQ_MaxHeight    EQU    CYBRMREQ_TB+5        ; Minumum height "       "        "
  61. CYBRMREQ_CModelArray    EQU    CYBRMREQ_TB+6        ; Filters certain color models
  62.  
  63. CYBRMREQ_WinTitle    EQU    CYBRMREQ_TB+20
  64. CYBRMREQ_OKText        EQU    CYBRMREQ_TB+21
  65. CYBRMREQ_CancelText    EQU    CYBRMREQ_TB+22
  66.  
  67. CYBRMREQ_Screen        EQU    CYBRMREQ_TB+30        ; Screen you wish the Requester to opened on
  68.  
  69. ;
  70. ; Tags for BestCyberModeID()
  71. ;
  72.  
  73. CYBRBIDTG_TB        EQU    (TAG_USER+$50000)
  74. ;
  75. ; FilterTags
  76. ;
  77. CYBRBIDTG_Depth        EQU    CYBRBIDTG_TB+0
  78. CYBRBIDTG_NominalWidth    EQU    CYBRBIDTG_TB+1
  79. CYBRBIDTG_NominalHeight    EQU    CYBRBIDTG_TB+2
  80. CYBRBIDTG_MonitorID    EQU    CYBRBIDTG_TB+3
  81. CYBRBIDTG_BoardName    EQU    CYBRBIDTG_TB+5
  82.  
  83.  
  84. PIXFMT_LUT8        EQU    0
  85. PIXFMT_RGB15        EQU    1
  86. PIXFMT_BGR15        EQU    2
  87. PIXFMT_RGB15PC        EQU    3
  88. PIXFMT_BGR15PC        EQU    4
  89. PIXFMT_RGB16        EQU    5
  90. PIXFMT_BGR16        EQU    6
  91. PIXFMT_RGB16PC        EQU    7
  92. PIXFMT_BGR16PC        EQU    8
  93. PIXFMT_RGB24        EQU    9
  94. PIXFMT_BGR24        EQU    10
  95. PIXFMT_ARGB32        EQU    11
  96. PIXFMT_BGRA32        EQU    12
  97. PIXFMT_RGBA32        EQU    13
  98.  
  99. PIXFMT_CNT        EQU    14
  100.  
  101. ;
  102. ; SrcRectangle formats defines for xxxPixelArray() calls
  103. ;
  104.  
  105. RECTFMT_RGB        EQU    0
  106. RECTFMT_RGBA        EQU    1
  107. RECTFMT_ARGB        EQU    2
  108. RECTFMT_LUT8        EQU    3
  109. RECTFMT_GREY8        EQU    4
  110.  
  111.  
  112. ;
  113. ; Parameters for CVideoCtrlTagList()
  114. ;
  115.  
  116. SETVC_DPMSLevel        EQU    $88002001
  117.  
  118. DPMS_ON            EQU    0    ; Full operation
  119. DPMS_STANDBY        EQU    1    ; Optional state of minimal power reduction
  120. DPMS_SUSPEND        EQU    2    ; Significant reduction of power consumption
  121. DPMS_OFF        EQU    3    ; Lowest level of power consumption
  122.  
  123.  
  124. ;
  125. ; Parameters for LockBitMapTagList()
  126. ;
  127.  
  128. LBMI_WIDTH        EQU    $84001001
  129. LBMI_HEIGHT        EQU    $84001002
  130. LBMI_DEPTH        EQU    $84001003
  131. LBMI_PIXFMT        EQU    $84001004
  132. LBMI_BYTESPERPIX    EQU    $84001005
  133. LBMI_BYTESPERROW    EQU    $84001006
  134. LBMI_BASEADDRESS    EQU    $84001007
  135.  
  136.             ENDC
  137.